#ifndef MENUDIALOG_H
#define MENUDIALOG_H

#include <QDialog>
#include <QDebug>
#include <QHash>
#include <QListWidgetItem>
#include "mainwindow.h"
#include "Constants.h"
#include "botserver.h"

namespace Ui {
class MenuDialog;
}

class MenuDialog : public QDialog
{
    Q_OBJECT

public:
    explicit MenuDialog(QWidget *parent = 0);
    ~MenuDialog();

public:
    void AddBot(ConfigParser* configuration);
    void UpdateList();

public slots:
    void setNewMsg(QString Msg);
    void UpdateSocketList(QList<int> newSocketList);
    void openBotWindow(QModelIndex modelIndex);

private:
    Ui::MenuDialog *ui;
    ConfigParser* configuration;
    QListWidgetItem* itmBot;
    MainWindow* BotWindow;
    QBrush *brush;
    BotServer botServer;
    QList<int>* socketList;
    QMap<QString, QListWidgetItem>* BotAndSocket;
};

#endif // MENUDIALOG_H
